from django.db import models
from django.contrib import admin

# Create your models here.
class UserInfo(models.Model):
    user_name = models.CharField(max_length=20)
    password = models.CharField(max_length=20)
    email = models.CharField(max_length=20)
    phone = models.CharField(max_length=11)

    def __str__(self):
        return self.user_name


 # class UserInfoAdmin(admin.ModelAdmin):
 #    list_display = ['id','user_name','password','email','phone']
 #
 #    admin.site.register(UserInfo,UserInfoAdmin)

# class UserAddress(models.Model):
#     detail = models.CharField(max_length=50)
#     user = models.ForeignKey('UserInfo',on_delete=models.CASCADE,)
#
#
#     def __str__(self):
#         return self.detail

